import java.util.Scanner;

public class shuzhu{
    public static void main(String[] args) {
        int[] scores={99,88,66,55,0};
        for (int i=0;i<scores.length-1;i++){
            System.out.println(scores[i]);
        }
        System.out.println("----------------------");
        Scanner input=new Scanner(System.in);
        int newscore= input.nextInt();
        int index=scores.length-1;
        for (int i=0;i<scores.length;i++){
            if (scores[i]<newscore){
                index =i;
                break;
            }
        }
        for (int i=scores.length-1;i>index;i--){
            scores[i]=scores[i-1];
        }
        scores[index]=newscore;
        for (int i=0;i<scores.length;i++){
            System.out.println(scores[i]);
        }
    }
}